/**
 * 
 */
package hawk.example;

import org.junit.jupiter.api.extension.BeforeAllCallback;
import org.junit.jupiter.api.extension.ExtensionContext;

/**
 * @author Hawk
 *
 */
public class WebServerExtension implements BeforeAllCallback{

	@Override
	public void beforeAll(ExtensionContext context) throws Exception {
		/* no-op for demo */
	}
	
	public String getServerUrl() {
		return "https://example.org:8181";
	}
	
	public static Builder builder() {
		return new Builder();
	}
	
	public static class Builder {

		public Builder enableSecurity(boolean b) {
			return this;
		}

		public WebServerExtension build() {
			return new WebServerExtension();
		}

	}

}
